<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class AdminRoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $nowDate = date('Y-m-d H:m:s', time());
        $sql = "insert into roles values (?,?,?,?,?,?)";
        DB::insert($sql, [1, "管理员", '管理员', $nowDate, $nowDate, null]);
        DB::insert($sql, [2, "分销商", '分销商', $nowDate, $nowDate, null]);
        DB::insert($sql, [3, "普通用户", '普通用户', $nowDate, $nowDate, null]);
    }
}
